package com.nuoniu.sibanyun.controller.system;


import com.nuoniu.sibanyun.common.BaseController;
import com.nuoniu.sibanyun.common.result.HttpResult;
import com.nuoniu.sibanyun.entity.SysIndustry;
import com.nuoniu.sibanyun.service.ISysIndustryService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 行业性质-系统设置 前端控制器
 * </p>
 *
 * @author baiqiang
 * @since 2020-09-25
 */
@RestController
@RequestMapping("/sys/industry")
@Api(value = "行业性质",tags = "行业性质")
public class SysIndustryController extends BaseController {


    @Autowired
    private ISysIndustryService sysIndustryService;


    @GetMapping("list")
    @ApiOperation(value = "获取行业性质")
    public HttpResult<List<SysIndustry>> list(){
        return HttpResult.ok(sysIndustryService.enableList());
    }

}
